package com.app.controller;

import com.app.service.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 *
 * Created by Administrator on 2016/1/23 0023.
 */
@Controller
public class IndexController {
    @Autowired
    DeviceService deviceService;
    @RequestMapping("")
    public String index(){
//        deviceService.deleteEntity("device0001");
//        deviceService.updateToBaiduCloud("device0001");
        String result = deviceService.getHistoryFromCloud("device0001", "15-05-11 11:34:23","15-05-11 11:47:13");
        System.out.println("result: "+result);
        return "/index";
    }
}
